import request from '@/utils/request.js'


export function visit(type, id) {
	let uuid = uni.getStorageSync('user_phonenumber_key')
	if (!uuid) {
		uuid = uni.getStorageSync('tempId')
	}
	return request({
	  url: '/app/assets/visit/visit',
	  method: 'post',
	  data: {
		  type: type,
		  code: uuid,
		  id: id
	  }
	})
}